<?php

/*
|--------------------------------------------------------------------------
| Rbac Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Route::get('/group', 'GroupController@index')->name('rbac.group');

// Route::get('/group/apiIndex', 'GroupController@apiIndex')->name('rbac.group.apiIndex');
// Route::post('/group/apiStore', 'GroupController@apiStore')->name('rbac.group.apiStore');
// Route::post('/group/apiDelete/{group}', 'GroupController@apiDelete')->name('rbac.group.apiDelete');



Route::get('/role', 'RoleController@index')->name('rbac.role');

Route::get('/role/apiIndex', 'RoleController@apiIndex')->name('rbac.role.apiIndex');
Route::post('/role/apiStore', 'RoleController@apiStore')->name('rbac.role.apiStore');
Route::post('/role/apiDelete/{role}', 'RoleController@apiDelete')->name('rbac.role.apiDelete');


Route::get('/operation', 'OperationController@index')->name('rbac.operation');

Route::get('/operation/apiIndex', 'OperationController@apiIndex')->name('rbac.operation.apiIndex');
Route::post('/operation/apiStore', 'OperationController@apiStore')->name('rbac.operation.apiStore');
Route::post('/operation/apiDelete/{operation}', 'OperationController@apiDelete')->name('rbac.operation.apiDelete');


Route::get('/restype', 'ResTypeController@index')->name('rbac.restype');

Route::get('/restype/apiIndex', 'ResTypeController@apiIndex')->name('rbac.restype.apiIndex');
Route::post('/restype/apiStore', 'ResTypeController@apiStore')->name('rbac.restype.apiStore');
Route::post('/restype/apiDelete/{restype}', 'ResTypeController@apiDelete')->name('rbac.restype.apiDelete');


Route::get('/resource', 'ResourceController@index')->name('rbac.resource');

Route::get('/resource/apiIndex', 'ResourceController@apiIndex')->name('rbac.resource.apiIndex');
Route::post('/resource/apiStore', 'ResourceController@apiStore')->name('rbac.resource.apiStore');
Route::post('/resource/apiDelete/{resource}', 'ResourceController@apiDelete')->name('rbac.resource.apiDelete');

Route::get('/resource/menu', 'ResourceController@menu')->name('rbac.resource.menu');
Route::get('/resource/apiMenuIndex', 'ResourceController@apiMenuIndex')->name('rbac.resource.apiMenuIndex');
Route::post('/resource/apiStoreMenu', 'ResourceController@apiStoreMenu')->name('rbac.resource.apiStoreMenu');


Route::get('/user', 'UserController@index')->name('rbac.user');

Route::get('/user/apiIndex', 'UserController@apiIndex')->name('rbac.user.apiIndex');
Route::post('/user/apiStore', 'UserController@apiStore')->name('rbac.user.apiStore');
Route::post('/user/apiDelete/{user}', 'UserController@apiDelete')->name('rbac.user.apiDelete');



Route::post('/file/apiUpload', 'BlogController@fileupload')->name('fileupload');
Route::get('/blog/apiArticle', 'BlogController@article')->name('blog.article');
Route::post('/category/apiStore', 'BlogController@categoryStore')->name('category.store');
Route::post('/article/apiStore', 'BlogController@articleStore')->name('article.store');
Route::post('/article/apiMovArticle', 'BlogController@articleMove')->name('article.move');
Route::get('/article/apiList', 'BlogController@articleList')->name('article.list');